home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import Forms.DressupForm;
- import flash.display.SimpleButton;
-
- public class Powerup extends SimpleButton
- {
-
-
- protected var _sDescription:String = "Does nothing";
-
- protected var _sName:String = "Base Powerup";
-
- protected var _iCharges:int = 1;
-
- public function Powerup()
- {
- _sName = "Base Powerup";
- _sDescription = "Does nothing";
- _iCharges = 1;
- super();
- }
-
- public function init(param1:DressupLevelInfo) : void
- {
- }
-
- public function get Charges() : int
- {
- return _iCharges;
- }
-
- public function spawn() : Powerup
- {
- return new Powerup();
- }
-
- public function get PowerupDescription() : String
- {
- return _sDescription;
- }
-
- public function get PowerupName() : String
- {
- return _sName;
- }
-
- public function activate(param1:Array, param2:Array, param3:DressupForm, param4:DressupLevelInfo) : void
- {
- --_iCharges;
- ++Profile.CurrentProfile.PowerupsUsed;
- }
- }
- }
-